SVM: use generic instruction decoding
authorJan Beulich <jbeulich@suse.com>
Fri, 30 Sep 2016 15:11:56 +0000 (17:11 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 30 Sep 2016 15:11:56 +0000 (17:11 +0200)
commit7e88dabffa9bcacbb180d919ffd68357d4feeba6
treeb15f4ac0b9ec0edf5e477b6d1b4ddd0ec532fb19
parent82a9ae278ce6e76838066ab85bf0ace1d9e858bf
SVM: use generic instruction decoding

... instead of custom handling. To facilitate this break out init code
from _hvm_emulate_one() into the new hvm_emulate_init(), and make
hvmemul_insn_fetch( globally available.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
xen/arch/x86/hvm/emulate.c
xen/arch/x86/hvm/svm/emulate.c
xen/arch/x86/x86_emulate/x86_emulate.c
xen/arch/x86/x86_emulate/x86_emulate.h
xen/include/asm-x86/hvm/emulate.h